import request from '@/utils/request'

// 查询用户词条标记列表
export function listUsermark(query) {
  return request({
    url: '/language/usermark/list',
    method: 'get',
    params: query
  })
}

// 查询用户词条标记详细
export function getUsermark(id) {
  return request({
    url: '/language/usermark/' + id,
    method: 'get'
  })
}

// 新增用户词条标记
export function addUsermark(data) {
  return request({
    url: '/language/usermark',
    method: 'post',
    data: data
  })
}

// 修改用户词条标记
export function updateUsermark(data) {
  return request({
    url: '/language/usermark',
    method: 'put',
    data: data
  })
}

// 删除用户词条标记
export function delUsermark(id) {
  return request({
    url: '/language/usermark/' + id,
    method: 'delete'
  })
}
